<?php 
require_once ROOT.'/model/usuario.php'; 
require_once ROOT.'/business/util/util.php';
?>

<?php  
session_start();
$usuario = unserialize($_SESSION["usuarioLogado"]);
if($usuario == null){
	header("Location: ".PATH."/login.php");
	exit;
}

$larguraLogo = "";
if(isMobile()){ 
	$larguraLogo = 'width="100px;"';
}

$divLogo = "div-logo";
if(isMobile()){
	$divLogo = "div-logo-mobile";
}
?>

<!DOCTYPE html>
<html>
	<meta http-equiv="Content-Type" content="text/html; iso-8859-1" />
	<meta http-equiv="Content-Language" content="PT-BR" />
	<meta name="language" content="portuguese" />
	<meta name="author" content="Milton Domingues" />
	<meta name="description" content="Sistema para colegios" />
	<meta name="keywords" content="Colegio avance matriculas colegial" />
	<meta name="URL" content="http://www.pointsistemas.com.br/" />
	<meta name="robots" content="index, follow" />
	<meta name="revisit-after" content="30 days" />
	<meta name="Target" content="_self" />
	<meta name="Page-Topic" content="" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<head> 
	<title>Portal do Estudante</title>
	<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css" />
	<link href="<?php echo PATH?>/resources/css/style.css" rel="stylesheet" type="text/css" />
	
	<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
	<script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script>
	<script type="text/javascript" src="<?php echo PATH?>/resources/js/core.js"></script>
</head>

<body class="bgbody" id="topo-page">

<div data-role="page">

<?php if(isMobile()){ ?>
	<div data-role="panel" id="menu-painel" data-position-fixed="true">
		<?php include ROOT.'/site/private/menu/menu.php';?>	
	</div> 
<?php } ?>
<div data-role="header" class="topo" data-position="fixed">
	<div class="linhaazul"></div>
	<div style="float: left; margin-top: 35px;">
		<?php if(isMobile()){?>
		<a class="ui-link" href="#menu-painel" data-theme="none">
			<span class="menu-mobile menu-mobile-close"></span>
		</a>
		<?php }?>
	</div>
	
	<div class="<?php echo $divLogo;?>">
		<h1 class="logo">
			<a class="ui-link" href="#">
				<img alt="Colegio avence" <?php echo $larguraLogo;?> src="<?php echo PATH;?>/resources/img/logo.png">
			</a>
		</h1>
	</div>
	<div style="float: left; margin-top: 35px;">
		<?php if(isMobile()){?>
		<a class="ui-link" href="#menu-painel" data-theme="none">
			<span class="menu-mobile menu-mobile-open"></span>
		</a>
		<?php }?>
	</div>
</div>

<?php if(!isMobile()){ ?>
	<div style="position: absolute; width: 250px; height: 80%; border-right: 1px solid #2f648e;">
	<?php include ROOT.'/site/private/menu/menu.php';?>
	</div>
<?php }?>

<div data-role="content" align="center">
